package com.spring.nbrbt.tools.otherutil;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtil {
	public static Properties config = null;

	static {
		InputStream in = PropertiesUtil.class.getClassLoader().getResourceAsStream("config.properties");
		config = new Properties();
		try {
			config.load(in);
			in.close();
		} catch (IOException e) {
			System.out.println("No AreaPhone.properties defined error");
		}
	}

	public static String getProParm(String str) {
		return config.getProperty(str);
	}
}
